package org.example.dayu521;

public class ORExecption extends Exception{
    private Object OR;

    public Object getOR(){
        return OR;
    }

    private void setOR(Object or){
        OR=or;
    }

    private ORExecption(String msg){
        super(msg);
    }

    public static <T> ORExecption X(T obj,String msg){
        var r=new ORExecption(msg);
        r.setOR(obj);
        return r;
    }
}
